var switchButton = null;
var additionalStylesEnabled = false;

var ENABLE_ALTERNATE_STYLES = "Включить стиль для слабовидящих";
var DISABLE_ALTERNATE_STYLES = "Отключить стиль для слабовидящих";

var NORMAL_CLASS_NAME = "normal";
var BIG_FONT_CLASS_NAME = "big_font";

var bodyElement = null;

function onSwitchStylesButtonClick()
{
    additionalStylesEnabled = !additionalStylesEnabled;
    if (additionalStylesEnabled)
    {
        switchButton.value = DISABLE_ALTERNATE_STYLES;
        bodyElement.className = BIG_FONT_CLASS_NAME;
    }
    else
    {
        switchButton.value = ENABLE_ALTERNATE_STYLES;
        bodyElement.className = NORMAL_CLASS_NAME;
    }
}

$(function() {
    $('#fileupload').fileupload();
    var inputForm = new InputForm();
    var userDataListView = new UserDataListView();
    bodyElement = document.getElementById('body');
    switchButton = document.getElementById('switchStylesButton');
    switchButton.onclick = onSwitchStylesButtonClick;

});
